# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import time


def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print_hi('PyCharm')

    statical_time = time.strftime("%Y-%m-%d", time.localtime())
    print_hi(statical_time)
    some_arr = [1]

    import time
    import datetime

    t = time.time()

    print(t)  # 原始时间数据
    print(' 时间戳 %s s', int(t))  # 秒级时间戳
    print(' 时间戳 %d ms', int(round(t * 1000)))  # 毫秒级时间戳
    print(' 时间戳 %d ms', int(round(time.time() * 1000)))  # 毫秒级时间戳
    print(' 时间戳 %s 微秒', int(round(t * 1000000)))  # 微秒级时间戳

    arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
    for i in range(0, len(arr), 3):
        print(' i = %s ',  type(arr[i:i+3]))


# See PyCharm help at https://www.jetbrains.com/help/pycharm/
